package com.project.Service.Impl;

import com.project.Bean.UserBean;
import com.project.Dao.IUserDao;
import com.project.Dao.impl.UserDaoImpl;
import com.project.Service.IUserService;

import java.util.List;


/**
 * @Title: ServiceImpl
 * @Package: com.project.Service.Impl
 * @Description:
 * @Author: Liang-Xie
 * @Date: 2022/6/21 - 5:46
 */
@SuppressWarnings("all")

public class ServiceImpl implements IUserService {

    private IUserDao userDAO = new UserDaoImpl();

    @Override
    public UserBean login(String username, String password) {
        return userDAO.getUserByNameAndPwd(username,password);
    }

    @Override
    public void add(UserBean user) {
        userDAO.add(user);
    }

    @Override
    public List<UserBean> findAll() {
        return null;
    }
}
